package com.kingyun.gpsinspection.purificationservice.facade.service.iam.adm;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.BusinessTravel;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.TaskLinkIam;

/**
 * Created by yangsy on 2016/12/19.
 * modify BY lutianbo on 2017/1/20
 */
public interface OutBusinessTravelService {

    int deleteByPrimaryKey(String businessTravelId);

    int insertSelective(BusinessTravel record, String userName, String pwd);

    BusinessTravel selectByPrimaryKey(String businessTravelId);

    int updateByPrimaryKeySelective(BusinessTravel record, TaskLinkIam taskLinkIam, String userName, String pwd);

    JSONObject list(BusinessTravel businessTravel);
    /**
     * 查询代处理
     * @param bootstrapSearchBean
     * @param task
     * @param type 0 休假1出差2用车
     * @return
     * @throws Exception
     */
    JSONObject listToDoTask(BootstrapSearchBean bootstrapSearchBean, TaskLinkIam task, int type, String username, String passwor);
}
